import Vue from "vue";
import Router from "vue-router";
import config from "@/config";

Vue.use(Router);

/** 静态路由 */
/** @type {import('vue-router').RouteConfig[]} */
export default new Router({
  scrollBehavior: () => ({ y: 0 }),
  routes: config.routes,
});
